package lbd;

import java.util.LinkedList;

public class TermFreq {
	
	private String 						term;
	private int 						freq;
	public	LinkedList<AdjacentTerms> 	adjacentTermsList;
	public 	LinkedList<TermFreq> 		synonymTermsList;
	public 	boolean						freqUsed = false;
	
	public TermFreq(String term, int freq) {		
		
		this.term 				= term ;
		this.freq 				= freq ;	
		this.adjacentTermsList 	= new LinkedList<AdjacentTerms>();
		this.synonymTermsList	= new LinkedList<TermFreq>(); 
		
	}

	public String getTerm() {
		return term;
	}
	
	public int getFreq() {
		return freq;
	}
	
	public void setFreq(int freq) {
		this.freq = freq;
	}
	
	public void addAdjacentTerms( String pre, String next ) {
		adjacentTermsList.add(new AdjacentTerms(pre, next));
	}
	
	public void addSynonymTerm( String term, int freq ) {
		synonymTermsList.add(new TermFreq(term, freq));
	}
	
}